{namespace exports}

/**
 * A template for creating an HTML file that documents a typedef and its
 * properties.
 *
 * param propList An array of property/type pairings.
 * 
 * @param typeName The name of the type.
 * @param? rev The revision being documented.
 * 
 * @param typedefDoc The descriptive text for the typedef.
 * @param typedefType The type being named.
 *
 * @param? deprecationReason The reason that this typedef is deprecated.  If
 *     missing, this means the typedef is not deprecated.
 */
{template .toTypedefDoc autoescape="false"}
<html>
  <head>
    <title>
      {$typeName} - Typedef Documentation
    </title>
    <link href="styles/common.css" rel="stylesheet" type="text/css" />
    <link href="styles/typedef.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <h1 class="typedef-header">Typedef: <span class="typedef">{$typeName}</span></h1>

    {if $deprecationReason}
      <h3 class="type-deprecation-header">Deprecated</h3>
      <div class="type-deprecation-reason">{$deprecationReason}</div>
    {/if}

    <div class="typedef-doc">{$typedefDoc}</div>

    <div class="typedef-type">{$typedefType}</div>

    /*<div class="typedef-values">
      <h3 class="values-head">Typedef Properties</h3>
        {foreach $prop in $propList}
          <div class="mono value">
            <div class="value-head">
              <span class="value-name">
                <a name="{$prop.name}">{$prop.name}</a>
              </span> : {$prop.type}
            </div>
          </div>
        {ifempty}
          <div class="mono value">This typedef has no properties.
          </div>
        {/foreach}
    </div> */

    {if $rev}<hr class="footer" /><div class="rev">revision: {$rev}</div>{/if}
  </body>
</html>
{/template}
